<h1>Games</h1>

<% if flash[:notice] %>
<div id="flash_notice"><%=h flash[:notice] %></div>
<% end %>



<div  class="game_list">
 <h2>Upcoming Games</h2>
 <p><i><font color="red">Unless stated all games will be at 7pm</font></i></p>
 <ul>
 <% for game in @upcoming_games %>
 <li><%= link_to h(game.name), game_path(:id => game.id)  %></li>
 <% end %>
 <%= no_games(@upcoming_games) %>
 </ul>
 
 </div>
 <br/>
 <div class="game_list">
 <h2>Past Games</h2>
 <ul>
 <% for game in @past_games %>
 <li><%= link_to h(game.name), game_path(:id => game.id)  %></li>
 <% end %>
 <%= no_games(@past_games) %>
 </ul>
 <br />
 <p class="add" align="right"><%= link_to "schedule new game", new_game_path %> </p>
 </div>
 
